import {defineStore} from "pinia";

export const taskStore = defineStore({
    id: 'task',
    state: () => {
        return {
            cityList: [],
            cityValue: localStorage.getItem('city') ?? '北京',
            bannerList: [],
            positionTypeList: [],
        }
    },
    actions: {
        setCityList(data: any) {
            this.cityList = data
        },
        setCityValue(value: string) {
            this.cityValue = value
        },
        setBannerList(data: any) {
            this.bannerList = data
        },
        setPositionTypeList(data: any) {
            this.positionTypeList = data
        }
    }
})